﻿using System;
using System.ComponentModel;
using System.Numerics;
using TaleWorlds.Core;
using TaleWorlds.GauntletUI;
using TaleWorlds.GauntletUI.BaseTypes;
using TaleWorlds.GauntletUI.Data;
using TaleWorlds.GauntletUI.ExtraWidgets;
using TaleWorlds.Library;
using TaleWorlds.MountAndBlade.GauntletUI.Widgets;
using TaleWorlds.MountAndBlade.GauntletUI.Widgets.Order;
using TaleWorlds.MountAndBlade.ViewModelCollection.Input;
using TaleWorlds.MountAndBlade.ViewModelCollection.Order;

namespace TaleWorlds.MountAndBlade.GauntletUI.AutoGenerated1
{
	// Token: 0x0200003A RID: 58
	public class OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_15_OrderTransferTroopItem__DependendPrefab : OrderTroopItemBrushWidget
	{
		// Token: 0x06000C6E RID: 3182 RVA: 0x0005D4C1 File Offset: 0x0005B6C1
		public OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_15_OrderTransferTroopItem__DependendPrefab(UIContext context) : base(context)
		{
		}

		// Token: 0x06000C6F RID: 3183 RVA: 0x0005D4CC File Offset: 0x0005B6CC
		public void CreateWidgets()
		{
			this._widget = this;
			this._widget_0 = new GridWidget(base.Context);
			this._widget.AddChild(this._widget_0);
			this._widget_1 = new ListPanel(base.Context);
			this._widget.AddChild(this._widget_1);
			this._widget_1_0 = new Widget(base.Context);
			this._widget_1.AddChild(this._widget_1_0);
			this._widget_1_1 = new TextWidget(base.Context);
			this._widget_1.AddChild(this._widget_1_1);
			this._widget_2 = new Widget(base.Context);
			this._widget.AddChild(this._widget_2);
			this._widget_2_0 = new InputKeyVisualWidget(base.Context);
			this._widget_2.AddChild(this._widget_2_0);
			this._widget_3 = new SliderWidget(base.Context);
			this._widget.AddChild(this._widget_3);
			this._widget_3_0 = new Widget(base.Context);
			this._widget_3.AddChild(this._widget_3_0);
			this._widget_3_1 = new Widget(base.Context);
			this._widget_3.AddChild(this._widget_3_1);
			this._widget_4 = new Widget(base.Context);
			this._widget.AddChild(this._widget_4);
			this._widget_5 = new ImageIdentifierWidget(base.Context);
			this._widget.AddChild(this._widget_5);
			this._widget_6 = new GridWidget(base.Context);
			this._widget.AddChild(this._widget_6);
		}

		// Token: 0x06000C70 RID: 3184 RVA: 0x0005D678 File Offset: 0x0005B878
		public void SetIds()
		{
			this._widget_0.Id = "PrimaryColorGrid";
			this._widget_3_0.Id = "Filler";
			this._widget_3_1.Id = "SliderHandle";
			this._widget_4.Id = "SelectionFrame";
		}

		// Token: 0x06000C71 RID: 3185 RVA: 0x0005D6C8 File Offset: 0x0005B8C8
		public void SetAttributes()
		{
			base.WidthSizePolicy = 0;
			base.HeightSizePolicy = 0;
			base.SuggestedWidth = 109.5f;
			base.SuggestedHeight = 163.5f;
			this._widget_0.WidthSizePolicy = 2;
			this._widget_0.HeightSizePolicy = 2;
			this._widget_0.HorizontalAlignment = 1;
			this._widget_0.VerticalAlignment = 0;
			this._widget_0.MarginTop = 50f;
			this._widget_0.ColumnCount = 2;
			this._widget_0.DefaultCellHeight = 46f;
			this._widget_0.DefaultCellWidth = 46f;
			this._widget_1.WidthSizePolicy = 2;
			this._widget_1.HeightSizePolicy = 2;
			this._widget_1.MarginLeft = 15f;
			this._widget_1.MarginTop = 10f;
			this._widget_1_0.WidthSizePolicy = 0;
			this._widget_1_0.HeightSizePolicy = 0;
			this._widget_1_0.SuggestedWidth = 30f;
			this._widget_1_0.SuggestedHeight = 30f;
			this._widget_1_0.VerticalAlignment = 1;
			this._widget_1_0.Sprite = base.Context.SpriteData.GetSprite("General\\Icons\\Morale@2x");
			this._widget_1_1.WidthSizePolicy = 2;
			this._widget_1_1.HeightSizePolicy = 2;
			this._widget_1_1.MarginLeft = 1f;
			this._widget_1_1.MarginTop = 8f;
			this._widget_1_1.VerticalAlignment = 1;
			this._widget_1_1.Brush = base.Context.GetBrush("Order.Troop.CountText");
			this._widget_1_1.Brush.FontSize = 20;
			this._widget_2.WidthSizePolicy = 2;
			this._widget_2.HeightSizePolicy = 2;
			this._widget_2.HorizontalAlignment = 2;
			this._widget_2.MarginTop = 5f;
			this._widget_2.PositionXOffset = 15f;
			this._widget_2_0.WidthSizePolicy = 0;
			this._widget_2_0.HeightSizePolicy = 0;
			this._widget_2_0.SuggestedWidth = 60f;
			this._widget_2_0.SuggestedHeight = 60f;
			this._widget_3.WidthSizePolicy = 0;
			this._widget_3.HeightSizePolicy = 0;
			this._widget_3.SuggestedHeight = 3f;
			this._widget_3.SuggestedWidth = 65f;
			this._widget_3.HorizontalAlignment = 1;
			this._widget_3.VerticalAlignment = 2;
			this._widget_3.MarginBottom = 13f;
			this._widget_3.MarginLeft = 3f;
			this._widget_3.DoNotUpdateHandleSize = true;
			this._widget_3.Filler = this._widget_3_0;
			this._widget_3.Handle = this._widget_3_1;
			this._widget_3.MaxValueFloat = 1f;
			this._widget_3.MinValueFloat = 0f;
			this._widget_3.AlignmentAxis = 0;
			this._widget_3_0.DoNotAcceptEvents = true;
			this._widget_3_0.WidthSizePolicy = 0;
			this._widget_3_0.HeightSizePolicy = 0;
			this._widget_3_0.SuggestedHeight = 3f;
			this._widget_3_0.SuggestedWidth = 100f;
			this._widget_3_0.VerticalAlignment = 2;
			this._widget_3_0.Sprite = base.Context.SpriteData.GetSprite("BlankWhiteSquare_9");
			this._widget_3_1.WidthSizePolicy = 0;
			this._widget_3_1.HeightSizePolicy = 0;
			this._widget_3_1.SuggestedWidth = 2f;
			this._widget_3_1.SuggestedHeight = 2f;
			this._widget_3_1.HorizontalAlignment = 0;
			this._widget_3_1.VerticalAlignment = 1;
			this._widget_3_1.IsVisible = false;
			this._widget_4.WidthSizePolicy = 1;
			this._widget_4.HeightSizePolicy = 1;
			this._widget_4.Sprite = base.Context.SpriteData.GetSprite("order_formation_selector_9");
			this._widget_4.Color = new Color(0f, 1f, 0f, 1f);
			this._widget_4.IsVisible = false;
			this._widget_5.DoNotAcceptEvents = true;
			this._widget_5.WidthSizePolicy = 0;
			this._widget_5.HeightSizePolicy = 0;
			this._widget_5.SuggestedWidth = 35f;
			this._widget_5.SuggestedHeight = 25f;
			this._widget_5.HorizontalAlignment = 1;
			this._widget_5.VerticalAlignment = 0;
			this._widget_5.PositionYOffset = -22f;
			this._widget_6.WidthSizePolicy = 2;
			this._widget_6.HeightSizePolicy = 2;
			this._widget_6.HorizontalAlignment = 0;
			this._widget_6.VerticalAlignment = 2;
			this._widget_6.MarginBottom = 37f;
			this._widget_6.MarginLeft = 17f;
			this._widget_6.ColumnCount = 2;
			this._widget_6.DefaultCellHeight = 20f;
			this._widget_6.DefaultCellWidth = 20f;
		}

		// Token: 0x06000C72 RID: 3186 RVA: 0x0005DBD4 File Offset: 0x0005BDD4
		public void DestroyDataSource()
		{
			if (this._datasource_Root != null)
			{
				this._datasource_Root.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root;
				this._datasource_Root.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root);
				this._widget.PropertyChanged -= this.PropertyChangedListenerOf_widget;
				this._widget.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget;
				this._widget.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget;
				this._widget.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget;
				this._widget.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget;
				this._widget.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget;
				this._widget.intPropertyChanged -= this.intPropertyChangedListenerOf_widget;
				this._widget.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget;
				this._widget.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget;
				this._widget_1_1.PropertyChanged -= this.PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_1_1;
				this._widget_2.PropertyChanged -= this.PropertyChangedListenerOf_widget_2;
				this._widget_2.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_2;
				this._widget_2.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_2;
				this._widget_2.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_2;
				this._widget_2.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_2;
				this._widget_2.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_2;
				this._widget_2.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_2;
				this._widget_2.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_2;
				this._widget_2.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_2;
				this._widget_3.PropertyChanged -= this.PropertyChangedListenerOf_widget_3;
				this._widget_3.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3;
				this._widget_3.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3;
				this._widget_3.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3;
				this._widget_3.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3;
				this._widget_3.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3;
				this._widget_3.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3;
				this._widget_3.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3;
				this._widget_3.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3;
				if (this._datasource_Root_ActiveFormationClasses != null)
				{
					this._datasource_Root_ActiveFormationClasses.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
					for (int i = this._widget_0.ChildCount - 1; i >= 0; i--)
					{
						Widget child = this._widget_0.GetChild(i);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child).OnBeforeRemovedChild(child);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)this._widget_0.GetChild(i)).DestroyDataSource();
					}
					this._datasource_Root_ActiveFormationClasses = null;
				}
				if (this._datasource_Root_SelectionKey != null)
				{
					this._datasource_Root_SelectionKey.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
					this._datasource_Root_SelectionKey.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
					this._widget_2_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_2_0;
					this._datasource_Root_SelectionKey = null;
				}
				if (this._datasource_Root_CommanderImageIdentifier != null)
				{
					this._datasource_Root_CommanderImageIdentifier.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._widget_5.PropertyChanged -= this.PropertyChangedListenerOf_widget_5;
					this._widget_5.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_5;
					this._widget_5.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_5;
					this._widget_5.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_5;
					this._widget_5.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_5;
					this._widget_5.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_5;
					this._widget_5.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_5;
					this._widget_5.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_5;
					this._widget_5.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_5;
					this._datasource_Root_CommanderImageIdentifier = null;
				}
				if (this._datasource_Root_ActiveFilters != null)
				{
					this._datasource_Root_ActiveFilters.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
					for (int j = this._widget_6.ChildCount - 1; j >= 0; j--)
					{
						Widget child2 = this._widget_6.GetChild(j);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child2).OnBeforeRemovedChild(child2);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)this._widget_6.GetChild(j)).DestroyDataSource();
					}
					this._datasource_Root_ActiveFilters = null;
				}
				this._datasource_Root = null;
			}
		}

		// Token: 0x06000C73 RID: 3187 RVA: 0x0005E438 File Offset: 0x0005C638
		public void SetDataSource(OrderTroopItemVM dataSource)
		{
			this.RefreshDataSource_datasource_Root(dataSource);
		}

		// Token: 0x06000C74 RID: 3188 RVA: 0x0005E441 File Offset: 0x0005C641
		private void PropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000C75 RID: 3189 RVA: 0x0005E44A File Offset: 0x0005C64A
		private void boolPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000C76 RID: 3190 RVA: 0x0005E453 File Offset: 0x0005C653
		private void floatPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000C77 RID: 3191 RVA: 0x0005E45C File Offset: 0x0005C65C
		private void Vec2PropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000C78 RID: 3192 RVA: 0x0005E465 File Offset: 0x0005C665
		private void Vector2PropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000C79 RID: 3193 RVA: 0x0005E46E File Offset: 0x0005C66E
		private void doublePropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000C7A RID: 3194 RVA: 0x0005E477 File Offset: 0x0005C677
		private void intPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000C7B RID: 3195 RVA: 0x0005E480 File Offset: 0x0005C680
		private void uintPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000C7C RID: 3196 RVA: 0x0005E489 File Offset: 0x0005C689
		private void ColorPropertyChangedListenerOf_widget(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget(propertyName);
		}

		// Token: 0x06000C7D RID: 3197 RVA: 0x0005E492 File Offset: 0x0005C692
		private void HandleWidgetPropertyChangeOf_widget(string propertyName)
		{
			propertyName == "FormationClass";
		}

		// Token: 0x06000C7E RID: 3198 RVA: 0x0005E4A0 File Offset: 0x0005C6A0
		private void PropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x06000C7F RID: 3199 RVA: 0x0005E4A9 File Offset: 0x0005C6A9
		private void boolPropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x06000C80 RID: 3200 RVA: 0x0005E4B2 File Offset: 0x0005C6B2
		private void floatPropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x06000C81 RID: 3201 RVA: 0x0005E4BB File Offset: 0x0005C6BB
		private void Vec2PropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x06000C82 RID: 3202 RVA: 0x0005E4C4 File Offset: 0x0005C6C4
		private void Vector2PropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x06000C83 RID: 3203 RVA: 0x0005E4CD File Offset: 0x0005C6CD
		private void doublePropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x06000C84 RID: 3204 RVA: 0x0005E4D6 File Offset: 0x0005C6D6
		private void intPropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x06000C85 RID: 3205 RVA: 0x0005E4DF File Offset: 0x0005C6DF
		private void uintPropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x06000C86 RID: 3206 RVA: 0x0005E4E8 File Offset: 0x0005C6E8
		private void ColorPropertyChangedListenerOf_widget_1_1(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_1_1(propertyName);
		}

		// Token: 0x06000C87 RID: 3207 RVA: 0x0005E4F4 File Offset: 0x0005C6F4
		private void HandleWidgetPropertyChangeOf_widget_1_1(string propertyName)
		{
			if (propertyName == "IntText")
			{
				this._datasource_Root.Morale = this._widget_1_1.IntText;
				return;
			}
			if (propertyName == "IsVisible")
			{
				this._datasource_Root.HaveTroops = this._widget_1_1.IsVisible;
				return;
			}
		}

		// Token: 0x06000C88 RID: 3208 RVA: 0x0005E549 File Offset: 0x0005C749
		private void PropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x06000C89 RID: 3209 RVA: 0x0005E552 File Offset: 0x0005C752
		private void boolPropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x06000C8A RID: 3210 RVA: 0x0005E55B File Offset: 0x0005C75B
		private void floatPropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x06000C8B RID: 3211 RVA: 0x0005E564 File Offset: 0x0005C764
		private void Vec2PropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x06000C8C RID: 3212 RVA: 0x0005E56D File Offset: 0x0005C76D
		private void Vector2PropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x06000C8D RID: 3213 RVA: 0x0005E576 File Offset: 0x0005C776
		private void doublePropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x06000C8E RID: 3214 RVA: 0x0005E57F File Offset: 0x0005C77F
		private void intPropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x06000C8F RID: 3215 RVA: 0x0005E588 File Offset: 0x0005C788
		private void uintPropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x06000C90 RID: 3216 RVA: 0x0005E591 File Offset: 0x0005C791
		private void ColorPropertyChangedListenerOf_widget_2(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2(propertyName);
		}

		// Token: 0x06000C91 RID: 3217 RVA: 0x0005E59A File Offset: 0x0005C79A
		private void HandleWidgetPropertyChangeOf_widget_2(string propertyName)
		{
			if (propertyName == "IsVisible")
			{
				this._datasource_Root.HaveTroops = this._widget_2.IsVisible;
				return;
			}
		}

		// Token: 0x06000C92 RID: 3218 RVA: 0x0005E5C0 File Offset: 0x0005C7C0
		private void PropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000C93 RID: 3219 RVA: 0x0005E5C9 File Offset: 0x0005C7C9
		private void boolPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000C94 RID: 3220 RVA: 0x0005E5D2 File Offset: 0x0005C7D2
		private void floatPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000C95 RID: 3221 RVA: 0x0005E5DB File Offset: 0x0005C7DB
		private void Vec2PropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000C96 RID: 3222 RVA: 0x0005E5E4 File Offset: 0x0005C7E4
		private void Vector2PropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000C97 RID: 3223 RVA: 0x0005E5ED File Offset: 0x0005C7ED
		private void doublePropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000C98 RID: 3224 RVA: 0x0005E5F6 File Offset: 0x0005C7F6
		private void intPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000C99 RID: 3225 RVA: 0x0005E5FF File Offset: 0x0005C7FF
		private void uintPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000C9A RID: 3226 RVA: 0x0005E608 File Offset: 0x0005C808
		private void ColorPropertyChangedListenerOf_widget_3(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_3(propertyName);
		}

		// Token: 0x06000C9B RID: 3227 RVA: 0x0005E614 File Offset: 0x0005C814
		private void HandleWidgetPropertyChangeOf_widget_3(string propertyName)
		{
			if (propertyName == "ValueFloat")
			{
				this._datasource_Root.AmmoPercentage = this._widget_3.ValueFloat;
				return;
			}
			if (propertyName == "IsVisible")
			{
				this._datasource_Root.IsAmmoAvailable = this._widget_3.IsVisible;
				return;
			}
		}

		// Token: 0x06000C9C RID: 3228 RVA: 0x0005E669 File Offset: 0x0005C869
		private void PropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x06000C9D RID: 3229 RVA: 0x0005E672 File Offset: 0x0005C872
		private void boolPropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x06000C9E RID: 3230 RVA: 0x0005E67B File Offset: 0x0005C87B
		private void floatPropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x06000C9F RID: 3231 RVA: 0x0005E684 File Offset: 0x0005C884
		private void Vec2PropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x06000CA0 RID: 3232 RVA: 0x0005E68D File Offset: 0x0005C88D
		private void Vector2PropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x06000CA1 RID: 3233 RVA: 0x0005E696 File Offset: 0x0005C896
		private void doublePropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x06000CA2 RID: 3234 RVA: 0x0005E69F File Offset: 0x0005C89F
		private void intPropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x06000CA3 RID: 3235 RVA: 0x0005E6A8 File Offset: 0x0005C8A8
		private void uintPropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x06000CA4 RID: 3236 RVA: 0x0005E6B1 File Offset: 0x0005C8B1
		private void ColorPropertyChangedListenerOf_widget_2_0(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_2_0(propertyName);
		}

		// Token: 0x06000CA5 RID: 3237 RVA: 0x0005E6BA File Offset: 0x0005C8BA
		private void HandleWidgetPropertyChangeOf_widget_2_0(string propertyName)
		{
			if (propertyName == "KeyID")
			{
				this._datasource_Root_SelectionKey.KeyID = this._widget_2_0.KeyID;
				return;
			}
		}

		// Token: 0x06000CA6 RID: 3238 RVA: 0x0005E6E0 File Offset: 0x0005C8E0
		private void PropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, object e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x06000CA7 RID: 3239 RVA: 0x0005E6E9 File Offset: 0x0005C8E9
		private void boolPropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, bool e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x06000CA8 RID: 3240 RVA: 0x0005E6F2 File Offset: 0x0005C8F2
		private void floatPropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, float e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x06000CA9 RID: 3241 RVA: 0x0005E6FB File Offset: 0x0005C8FB
		private void Vec2PropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, Vec2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x06000CAA RID: 3242 RVA: 0x0005E704 File Offset: 0x0005C904
		private void Vector2PropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, Vector2 e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x06000CAB RID: 3243 RVA: 0x0005E70D File Offset: 0x0005C90D
		private void doublePropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, double e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x06000CAC RID: 3244 RVA: 0x0005E716 File Offset: 0x0005C916
		private void intPropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, int e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x06000CAD RID: 3245 RVA: 0x0005E71F File Offset: 0x0005C91F
		private void uintPropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, uint e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x06000CAE RID: 3246 RVA: 0x0005E728 File Offset: 0x0005C928
		private void ColorPropertyChangedListenerOf_widget_5(PropertyOwnerObject propertyOwnerObject, string propertyName, Color e)
		{
			this.HandleWidgetPropertyChangeOf_widget_5(propertyName);
		}

		// Token: 0x06000CAF RID: 3247 RVA: 0x0005E731 File Offset: 0x0005C931
		private void HandleWidgetPropertyChangeOf_widget_5(string propertyName)
		{
			if (propertyName == "AdditionalArgs")
			{
				return;
			}
			if (propertyName == "ImageId")
			{
				return;
			}
			propertyName == "ImageTypeCode";
		}

		// Token: 0x06000CB0 RID: 3248 RVA: 0x0005E75B File Offset: 0x0005C95B
		private void ViewModelPropertyChangedListenerOf_datasource_Root(object sender, PropertyChangedEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000CB1 RID: 3249 RVA: 0x0005E769 File Offset: 0x0005C969
		private void ViewModelPropertyChangedWithValueListenerOf_datasource_Root(object sender, PropertyChangedWithValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000CB2 RID: 3250 RVA: 0x0005E777 File Offset: 0x0005C977
		private void ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root(object sender, PropertyChangedWithBoolValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000CB3 RID: 3251 RVA: 0x0005E785 File Offset: 0x0005C985
		private void ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root(object sender, PropertyChangedWithIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000CB4 RID: 3252 RVA: 0x0005E793 File Offset: 0x0005C993
		private void ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root(object sender, PropertyChangedWithFloatValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000CB5 RID: 3253 RVA: 0x0005E7A1 File Offset: 0x0005C9A1
		private void ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root(object sender, PropertyChangedWithUIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000CB6 RID: 3254 RVA: 0x0005E7AF File Offset: 0x0005C9AF
		private void ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root(object sender, PropertyChangedWithColorValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000CB7 RID: 3255 RVA: 0x0005E7BD File Offset: 0x0005C9BD
		private void ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root(object sender, PropertyChangedWithDoubleValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000CB8 RID: 3256 RVA: 0x0005E7CB File Offset: 0x0005C9CB
		private void ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root(object sender, PropertyChangedWithVec2ValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root(e.PropertyName);
		}

		// Token: 0x06000CB9 RID: 3257 RVA: 0x0005E7DC File Offset: 0x0005C9DC
		private void HandleViewModelPropertyChangeOf_datasource_Root(string propertyName)
		{
			if (propertyName == "ActiveFormationClasses")
			{
				this.RefreshDataSource_datasource_Root_ActiveFormationClasses(this._datasource_Root.ActiveFormationClasses);
				return;
			}
			if (propertyName == "SelectionKey")
			{
				this.RefreshDataSource_datasource_Root_SelectionKey(this._datasource_Root.SelectionKey);
				return;
			}
			if (propertyName == "CommanderImageIdentifier")
			{
				this.RefreshDataSource_datasource_Root_CommanderImageIdentifier(this._datasource_Root.CommanderImageIdentifier);
				return;
			}
			if (propertyName == "ActiveFilters")
			{
				this.RefreshDataSource_datasource_Root_ActiveFilters(this._datasource_Root.ActiveFilters);
				return;
			}
			if (propertyName == "OrderOfBattleFormationClass")
			{
				return;
			}
			if (propertyName == "Morale")
			{
				this._widget_1_1.IntText = this._datasource_Root.Morale;
				return;
			}
			if (propertyName == "HaveTroops")
			{
				this._widget_1_1.IsVisible = this._datasource_Root.HaveTroops;
				this._widget_2.IsVisible = this._datasource_Root.HaveTroops;
				return;
			}
			if (propertyName == "AmmoPercentage")
			{
				this._widget_3.ValueFloat = this._datasource_Root.AmmoPercentage;
				return;
			}
			if (propertyName == "IsAmmoAvailable")
			{
				this._widget_3.IsVisible = this._datasource_Root.IsAmmoAvailable;
				return;
			}
		}

		// Token: 0x06000CBA RID: 3258 RVA: 0x0005E919 File Offset: 0x0005CB19
		private void ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000CBB RID: 3259 RVA: 0x0005E927 File Offset: 0x0005CB27
		private void ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000CBC RID: 3260 RVA: 0x0005E935 File Offset: 0x0005CB35
		private void ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithBoolValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000CBD RID: 3261 RVA: 0x0005E943 File Offset: 0x0005CB43
		private void ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000CBE RID: 3262 RVA: 0x0005E951 File Offset: 0x0005CB51
		private void ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithFloatValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000CBF RID: 3263 RVA: 0x0005E95F File Offset: 0x0005CB5F
		private void ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithUIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000CC0 RID: 3264 RVA: 0x0005E96D File Offset: 0x0005CB6D
		private void ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithColorValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000CC1 RID: 3265 RVA: 0x0005E97B File Offset: 0x0005CB7B
		private void ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithDoubleValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000CC2 RID: 3266 RVA: 0x0005E989 File Offset: 0x0005CB89
		private void ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey(object sender, PropertyChangedWithVec2ValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(e.PropertyName);
		}

		// Token: 0x06000CC3 RID: 3267 RVA: 0x0005E997 File Offset: 0x0005CB97
		private void HandleViewModelPropertyChangeOf_datasource_Root_SelectionKey(string propertyName)
		{
			if (propertyName == "KeyID")
			{
				this._widget_2_0.KeyID = this._datasource_Root_SelectionKey.KeyID;
				return;
			}
		}

		// Token: 0x06000CC4 RID: 3268 RVA: 0x0005E9BD File Offset: 0x0005CBBD
		private void ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000CC5 RID: 3269 RVA: 0x0005E9CB File Offset: 0x0005CBCB
		private void ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000CC6 RID: 3270 RVA: 0x0005E9D9 File Offset: 0x0005CBD9
		private void ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithBoolValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000CC7 RID: 3271 RVA: 0x0005E9E7 File Offset: 0x0005CBE7
		private void ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000CC8 RID: 3272 RVA: 0x0005E9F5 File Offset: 0x0005CBF5
		private void ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithFloatValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000CC9 RID: 3273 RVA: 0x0005EA03 File Offset: 0x0005CC03
		private void ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithUIntValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000CCA RID: 3274 RVA: 0x0005EA11 File Offset: 0x0005CC11
		private void ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithColorValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000CCB RID: 3275 RVA: 0x0005EA1F File Offset: 0x0005CC1F
		private void ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithDoubleValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000CCC RID: 3276 RVA: 0x0005EA2D File Offset: 0x0005CC2D
		private void ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier(object sender, PropertyChangedWithVec2ValueEventArgs e)
		{
			this.HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(e.PropertyName);
		}

		// Token: 0x06000CCD RID: 3277 RVA: 0x0005EA3C File Offset: 0x0005CC3C
		private void HandleViewModelPropertyChangeOf_datasource_Root_CommanderImageIdentifier(string propertyName)
		{
			if (propertyName == "AdditionalArgs")
			{
				this._widget_5.AdditionalArgs = this._datasource_Root_CommanderImageIdentifier.AdditionalArgs;
				return;
			}
			if (propertyName == "Id")
			{
				this._widget_5.ImageId = this._datasource_Root_CommanderImageIdentifier.Id;
				return;
			}
			if (propertyName == "ImageTypeCode")
			{
				this._widget_5.ImageTypeCode = this._datasource_Root_CommanderImageIdentifier.ImageTypeCode;
				return;
			}
		}

		// Token: 0x06000CCE RID: 3278 RVA: 0x0005EAB8 File Offset: 0x0005CCB8
		public void OnList_datasource_Root_ActiveFormationClassesChanged(object sender, ListChangedEventArgs e)
		{
			switch (e.ListChangedType)
			{
			case 0:
				for (int i = this._widget_0.ChildCount - 1; i >= 0; i--)
				{
					Widget child = this._widget_0.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child).OnBeforeRemovedChild(child);
					Widget child2 = this._widget_0.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child2).SetDataSource(null);
					this._widget_0.RemoveChild(child2);
				}
				return;
			case 1:
				for (int j = 0; j < this._datasource_Root_ActiveFormationClasses.Count; j++)
				{
					OrderTroopItemFormationClassVM bindingObject = this._datasource_Root_ActiveFormationClasses[j];
					this._widget_0.FindChild((Widget widget) => widget.GetComponent<GeneratedWidgetData>().Data == bindingObject).SetSiblingIndex(j, false);
				}
				return;
			case 2:
			{
				OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate(base.Context);
				GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate);
				OrderTroopItemFormationClassVM orderTroopItemFormationClassVM = this._datasource_Root_ActiveFormationClasses[e.NewIndex];
				generatedWidgetData.Data = orderTroopItemFormationClassVM;
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.AddComponent(generatedWidgetData);
				this._widget_0.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate, e.NewIndex);
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.CreateWidgets();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetIds();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetAttributes();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetDataSource(orderTroopItemFormationClassVM);
				return;
			}
			case 3:
			{
				Widget child3 = this._widget_0.GetChild(e.NewIndex);
				((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child3).OnBeforeRemovedChild(child3);
				return;
			}
			case 4:
			{
				Widget child4 = this._widget_0.GetChild(e.NewIndex);
				((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child4).SetDataSource(null);
				this._widget_0.RemoveChild(child4);
				break;
			}
			case 5:
				break;
			default:
				return;
			}
		}

		// Token: 0x06000CCF RID: 3279 RVA: 0x0005EC54 File Offset: 0x0005CE54
		public void OnList_datasource_Root_ActiveFiltersChanged(object sender, ListChangedEventArgs e)
		{
			switch (e.ListChangedType)
			{
			case 0:
				for (int i = this._widget_6.ChildCount - 1; i >= 0; i--)
				{
					Widget child = this._widget_6.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child).OnBeforeRemovedChild(child);
					Widget child2 = this._widget_6.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child2).SetDataSource(null);
					this._widget_6.RemoveChild(child2);
				}
				return;
			case 1:
				for (int j = 0; j < this._datasource_Root_ActiveFilters.Count; j++)
				{
					OrderTroopItemFilterVM bindingObject = this._datasource_Root_ActiveFilters[j];
					this._widget_6.FindChild((Widget widget) => widget.GetComponent<GeneratedWidgetData>().Data == bindingObject).SetSiblingIndex(j, false);
				}
				return;
			case 2:
			{
				OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate(base.Context);
				GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate);
				OrderTroopItemFilterVM orderTroopItemFilterVM = this._datasource_Root_ActiveFilters[e.NewIndex];
				generatedWidgetData.Data = orderTroopItemFilterVM;
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.AddComponent(generatedWidgetData);
				this._widget_6.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate, e.NewIndex);
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.CreateWidgets();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetIds();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetAttributes();
				orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetDataSource(orderTroopItemFilterVM);
				return;
			}
			case 3:
			{
				Widget child3 = this._widget_6.GetChild(e.NewIndex);
				((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child3).OnBeforeRemovedChild(child3);
				return;
			}
			case 4:
			{
				Widget child4 = this._widget_6.GetChild(e.NewIndex);
				((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child4).SetDataSource(null);
				this._widget_6.RemoveChild(child4);
				break;
			}
			case 5:
				break;
			default:
				return;
			}
		}

		// Token: 0x06000CD0 RID: 3280 RVA: 0x0005EDF0 File Offset: 0x0005CFF0
		private void RefreshDataSource_datasource_Root(OrderTroopItemVM newDataSource)
		{
			if (this._datasource_Root != null)
			{
				this._datasource_Root.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root;
				this._datasource_Root.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root);
				this._widget.PropertyChanged -= this.PropertyChangedListenerOf_widget;
				this._widget.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget;
				this._widget.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget;
				this._widget.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget;
				this._widget.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget;
				this._widget.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget;
				this._widget.intPropertyChanged -= this.intPropertyChangedListenerOf_widget;
				this._widget.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget;
				this._widget.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget;
				this._widget_1_1.PropertyChanged -= this.PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_1_1;
				this._widget_2.PropertyChanged -= this.PropertyChangedListenerOf_widget_2;
				this._widget_2.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_2;
				this._widget_2.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_2;
				this._widget_2.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_2;
				this._widget_2.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_2;
				this._widget_2.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_2;
				this._widget_2.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_2;
				this._widget_2.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_2;
				this._widget_2.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_2;
				this._widget_3.PropertyChanged -= this.PropertyChangedListenerOf_widget_3;
				this._widget_3.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_3;
				this._widget_3.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_3;
				this._widget_3.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_3;
				this._widget_3.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_3;
				this._widget_3.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_3;
				this._widget_3.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_3;
				this._widget_3.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_3;
				this._widget_3.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_3;
				if (this._datasource_Root_ActiveFormationClasses != null)
				{
					this._datasource_Root_ActiveFormationClasses.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
					for (int i = this._widget_0.ChildCount - 1; i >= 0; i--)
					{
						Widget child = this._widget_0.GetChild(i);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child).OnBeforeRemovedChild(child);
						Widget child2 = this._widget_0.GetChild(i);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child2).SetDataSource(null);
						this._widget_0.RemoveChild(child2);
					}
					this._datasource_Root_ActiveFormationClasses = null;
				}
				if (this._datasource_Root_SelectionKey != null)
				{
					this._datasource_Root_SelectionKey.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
					this._datasource_Root_SelectionKey.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
					this._widget_2_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_2_0;
					this._datasource_Root_SelectionKey = null;
				}
				if (this._datasource_Root_CommanderImageIdentifier != null)
				{
					this._datasource_Root_CommanderImageIdentifier.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._widget_5.PropertyChanged -= this.PropertyChangedListenerOf_widget_5;
					this._widget_5.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_5;
					this._widget_5.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_5;
					this._widget_5.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_5;
					this._widget_5.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_5;
					this._widget_5.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_5;
					this._widget_5.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_5;
					this._widget_5.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_5;
					this._widget_5.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_5;
					this._datasource_Root_CommanderImageIdentifier = null;
				}
				if (this._datasource_Root_ActiveFilters != null)
				{
					this._datasource_Root_ActiveFilters.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
					for (int j = this._widget_6.ChildCount - 1; j >= 0; j--)
					{
						Widget child3 = this._widget_6.GetChild(j);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child3).OnBeforeRemovedChild(child3);
						Widget child4 = this._widget_6.GetChild(j);
						((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child4).SetDataSource(null);
						this._widget_6.RemoveChild(child4);
					}
					this._datasource_Root_ActiveFilters = null;
				}
				this._datasource_Root = null;
			}
			this._datasource_Root = newDataSource;
			if (this._datasource_Root != null)
			{
				this._datasource_Root.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root;
				this._datasource_Root.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root);
				this._datasource_Root.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root);
				this._widget.PropertyChanged += this.PropertyChangedListenerOf_widget;
				this._widget.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget;
				this._widget.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget;
				this._widget.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget;
				this._widget.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget;
				this._widget.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget;
				this._widget.intPropertyChanged += this.intPropertyChangedListenerOf_widget;
				this._widget.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget;
				this._widget.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget;
				this._widget_1_1.IntText = this._datasource_Root.Morale;
				this._widget_1_1.IsVisible = this._datasource_Root.HaveTroops;
				this._widget_1_1.PropertyChanged += this.PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.intPropertyChanged += this.intPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_1_1;
				this._widget_1_1.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_1_1;
				this._widget_2.IsVisible = this._datasource_Root.HaveTroops;
				this._widget_2.PropertyChanged += this.PropertyChangedListenerOf_widget_2;
				this._widget_2.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_2;
				this._widget_2.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_2;
				this._widget_2.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_2;
				this._widget_2.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_2;
				this._widget_2.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_2;
				this._widget_2.intPropertyChanged += this.intPropertyChangedListenerOf_widget_2;
				this._widget_2.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_2;
				this._widget_2.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_2;
				this._widget_3.ValueFloat = this._datasource_Root.AmmoPercentage;
				this._widget_3.IsVisible = this._datasource_Root.IsAmmoAvailable;
				this._widget_3.PropertyChanged += this.PropertyChangedListenerOf_widget_3;
				this._widget_3.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_3;
				this._widget_3.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_3;
				this._widget_3.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_3;
				this._widget_3.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_3;
				this._widget_3.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_3;
				this._widget_3.intPropertyChanged += this.intPropertyChangedListenerOf_widget_3;
				this._widget_3.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_3;
				this._widget_3.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_3;
				this._datasource_Root_ActiveFormationClasses = this._datasource_Root.ActiveFormationClasses;
				if (this._datasource_Root_ActiveFormationClasses != null)
				{
					this._datasource_Root_ActiveFormationClasses.ListChanged += new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
					for (int k = 0; k < this._datasource_Root_ActiveFormationClasses.Count; k++)
					{
						OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate(base.Context);
						GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate);
						OrderTroopItemFormationClassVM orderTroopItemFormationClassVM = this._datasource_Root_ActiveFormationClasses[k];
						generatedWidgetData.Data = orderTroopItemFormationClassVM;
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.AddComponent(generatedWidgetData);
						this._widget_0.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate, k);
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.CreateWidgets();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetIds();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetAttributes();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetDataSource(orderTroopItemFormationClassVM);
					}
				}
				this._datasource_Root_SelectionKey = this._datasource_Root.SelectionKey;
				if (this._datasource_Root_SelectionKey != null)
				{
					this._datasource_Root_SelectionKey.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
					this._datasource_Root_SelectionKey.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
					this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
					this._widget_2_0.KeyID = this._datasource_Root_SelectionKey.KeyID;
					this._widget_2_0.PropertyChanged += this.PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.intPropertyChanged += this.intPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_2_0;
					this._widget_2_0.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_2_0;
				}
				this._datasource_Root_CommanderImageIdentifier = this._datasource_Root.CommanderImageIdentifier;
				if (this._datasource_Root_CommanderImageIdentifier != null)
				{
					this._datasource_Root_CommanderImageIdentifier.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
					this._widget_5.AdditionalArgs = this._datasource_Root_CommanderImageIdentifier.AdditionalArgs;
					this._widget_5.ImageId = this._datasource_Root_CommanderImageIdentifier.Id;
					this._widget_5.ImageTypeCode = this._datasource_Root_CommanderImageIdentifier.ImageTypeCode;
					this._widget_5.PropertyChanged += this.PropertyChangedListenerOf_widget_5;
					this._widget_5.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_5;
					this._widget_5.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_5;
					this._widget_5.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_5;
					this._widget_5.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_5;
					this._widget_5.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_5;
					this._widget_5.intPropertyChanged += this.intPropertyChangedListenerOf_widget_5;
					this._widget_5.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_5;
					this._widget_5.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_5;
				}
				this._datasource_Root_ActiveFilters = this._datasource_Root.ActiveFilters;
				if (this._datasource_Root_ActiveFilters != null)
				{
					this._datasource_Root_ActiveFilters.ListChanged += new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
					for (int l = 0; l < this._datasource_Root_ActiveFilters.Count; l++)
					{
						OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate(base.Context);
						GeneratedWidgetData generatedWidgetData2 = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate);
						OrderTroopItemFilterVM orderTroopItemFilterVM = this._datasource_Root_ActiveFilters[l];
						generatedWidgetData2.Data = orderTroopItemFilterVM;
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.AddComponent(generatedWidgetData2);
						this._widget_6.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate, l);
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.CreateWidgets();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetIds();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetAttributes();
						orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetDataSource(orderTroopItemFilterVM);
					}
				}
			}
		}

		// Token: 0x06000CD1 RID: 3281 RVA: 0x00060034 File Offset: 0x0005E234
		private void RefreshDataSource_datasource_Root_ActiveFormationClasses(MBBindingList<OrderTroopItemFormationClassVM> newDataSource)
		{
			if (this._datasource_Root_ActiveFormationClasses != null)
			{
				this._datasource_Root_ActiveFormationClasses.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
				for (int i = this._widget_0.ChildCount - 1; i >= 0; i--)
				{
					Widget child = this._widget_0.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child).OnBeforeRemovedChild(child);
					Widget child2 = this._widget_0.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate)child2).SetDataSource(null);
					this._widget_0.RemoveChild(child2);
				}
				this._datasource_Root_ActiveFormationClasses = null;
			}
			this._datasource_Root_ActiveFormationClasses = newDataSource;
			this._datasource_Root_ActiveFormationClasses = this._datasource_Root.ActiveFormationClasses;
			if (this._datasource_Root_ActiveFormationClasses != null)
			{
				this._datasource_Root_ActiveFormationClasses.ListChanged += new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFormationClassesChanged);
				for (int j = 0; j < this._datasource_Root_ActiveFormationClasses.Count; j++)
				{
					OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate(base.Context);
					GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate);
					OrderTroopItemFormationClassVM orderTroopItemFormationClassVM = this._datasource_Root_ActiveFormationClasses[j];
					generatedWidgetData.Data = orderTroopItemFormationClassVM;
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.AddComponent(generatedWidgetData);
					this._widget_0.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate, j);
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.CreateWidgets();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetIds();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetAttributes();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_17_ItemTemplate.SetDataSource(orderTroopItemFormationClassVM);
				}
			}
		}

		// Token: 0x06000CD2 RID: 3282 RVA: 0x00060170 File Offset: 0x0005E370
		private void RefreshDataSource_datasource_Root_SelectionKey(InputKeyItemVM newDataSource)
		{
			if (this._datasource_Root_SelectionKey != null)
			{
				this._datasource_Root_SelectionKey.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
				this._datasource_Root_SelectionKey.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
				this._widget_2_0.PropertyChanged -= this.PropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_2_0;
				this._datasource_Root_SelectionKey = null;
			}
			this._datasource_Root_SelectionKey = newDataSource;
			this._datasource_Root_SelectionKey = this._datasource_Root.SelectionKey;
			if (this._datasource_Root_SelectionKey != null)
			{
				this._datasource_Root_SelectionKey.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root_SelectionKey;
				this._datasource_Root_SelectionKey.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_SelectionKey);
				this._datasource_Root_SelectionKey.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_SelectionKey);
				this._widget_2_0.KeyID = this._datasource_Root_SelectionKey.KeyID;
				this._widget_2_0.PropertyChanged += this.PropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.intPropertyChanged += this.intPropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_2_0;
				this._widget_2_0.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_2_0;
			}
		}

		// Token: 0x06000CD3 RID: 3283 RVA: 0x00060504 File Offset: 0x0005E704
		private void RefreshDataSource_datasource_Root_CommanderImageIdentifier(ImageIdentifierVM newDataSource)
		{
			if (this._datasource_Root_CommanderImageIdentifier != null)
			{
				this._datasource_Root_CommanderImageIdentifier.PropertyChanged -= this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue -= new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue -= new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue -= new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue -= new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue -= new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue -= new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue -= new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value -= new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._widget_5.PropertyChanged -= this.PropertyChangedListenerOf_widget_5;
				this._widget_5.boolPropertyChanged -= this.boolPropertyChangedListenerOf_widget_5;
				this._widget_5.floatPropertyChanged -= this.floatPropertyChangedListenerOf_widget_5;
				this._widget_5.Vec2PropertyChanged -= this.Vec2PropertyChangedListenerOf_widget_5;
				this._widget_5.Vector2PropertyChanged -= this.Vector2PropertyChangedListenerOf_widget_5;
				this._widget_5.doublePropertyChanged -= this.doublePropertyChangedListenerOf_widget_5;
				this._widget_5.intPropertyChanged -= this.intPropertyChangedListenerOf_widget_5;
				this._widget_5.uintPropertyChanged -= this.uintPropertyChangedListenerOf_widget_5;
				this._widget_5.ColorPropertyChanged -= this.ColorPropertyChangedListenerOf_widget_5;
				this._datasource_Root_CommanderImageIdentifier = null;
			}
			this._datasource_Root_CommanderImageIdentifier = newDataSource;
			this._datasource_Root_CommanderImageIdentifier = this._datasource_Root.CommanderImageIdentifier;
			if (this._datasource_Root_CommanderImageIdentifier != null)
			{
				this._datasource_Root_CommanderImageIdentifier.PropertyChanged += this.ViewModelPropertyChangedListenerOf_datasource_Root_CommanderImageIdentifier;
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithValue += new PropertyChangedWithValueEventHandler(this.ViewModelPropertyChangedWithValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithBoolValue += new PropertyChangedWithBoolValueEventHandler(this.ViewModelPropertyChangedWithBoolValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithIntValue += new PropertyChangedWithIntValueEventHandler(this.ViewModelPropertyChangedWithIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithFloatValue += new PropertyChangedWithFloatValueEventHandler(this.ViewModelPropertyChangedWithFloatValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithUIntValue += new PropertyChangedWithUIntValueEventHandler(this.ViewModelPropertyChangedWithUIntValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithColorValue += new PropertyChangedWithColorValueEventHandler(this.ViewModelPropertyChangedWithColorValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithDoubleValue += new PropertyChangedWithDoubleValueEventHandler(this.ViewModelPropertyChangedWithDoubleValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._datasource_Root_CommanderImageIdentifier.PropertyChangedWithVec2Value += new PropertyChangedWithVec2ValueEventHandler(this.ViewModelPropertyChangedWithVec2ValueListenerOf_datasource_Root_CommanderImageIdentifier);
				this._widget_5.AdditionalArgs = this._datasource_Root_CommanderImageIdentifier.AdditionalArgs;
				this._widget_5.ImageId = this._datasource_Root_CommanderImageIdentifier.Id;
				this._widget_5.ImageTypeCode = this._datasource_Root_CommanderImageIdentifier.ImageTypeCode;
				this._widget_5.PropertyChanged += this.PropertyChangedListenerOf_widget_5;
				this._widget_5.boolPropertyChanged += this.boolPropertyChangedListenerOf_widget_5;
				this._widget_5.floatPropertyChanged += this.floatPropertyChangedListenerOf_widget_5;
				this._widget_5.Vec2PropertyChanged += this.Vec2PropertyChangedListenerOf_widget_5;
				this._widget_5.Vector2PropertyChanged += this.Vector2PropertyChangedListenerOf_widget_5;
				this._widget_5.doublePropertyChanged += this.doublePropertyChangedListenerOf_widget_5;
				this._widget_5.intPropertyChanged += this.intPropertyChangedListenerOf_widget_5;
				this._widget_5.uintPropertyChanged += this.uintPropertyChangedListenerOf_widget_5;
				this._widget_5.ColorPropertyChanged += this.ColorPropertyChangedListenerOf_widget_5;
			}
		}

		// Token: 0x06000CD4 RID: 3284 RVA: 0x000608C4 File Offset: 0x0005EAC4
		private void RefreshDataSource_datasource_Root_ActiveFilters(MBBindingList<OrderTroopItemFilterVM> newDataSource)
		{
			if (this._datasource_Root_ActiveFilters != null)
			{
				this._datasource_Root_ActiveFilters.ListChanged -= new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
				for (int i = this._widget_6.ChildCount - 1; i >= 0; i--)
				{
					Widget child = this._widget_6.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child).OnBeforeRemovedChild(child);
					Widget child2 = this._widget_6.GetChild(i);
					((OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate)child2).SetDataSource(null);
					this._widget_6.RemoveChild(child2);
				}
				this._datasource_Root_ActiveFilters = null;
			}
			this._datasource_Root_ActiveFilters = newDataSource;
			this._datasource_Root_ActiveFilters = this._datasource_Root.ActiveFilters;
			if (this._datasource_Root_ActiveFilters != null)
			{
				this._datasource_Root_ActiveFilters.ListChanged += new ListChangedEventHandler(this.OnList_datasource_Root_ActiveFiltersChanged);
				for (int j = 0; j < this._datasource_Root_ActiveFilters.Count; j++)
				{
					OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate = new OrderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate(base.Context);
					GeneratedWidgetData generatedWidgetData = new GeneratedWidgetData(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate);
					OrderTroopItemFilterVM orderTroopItemFilterVM = this._datasource_Root_ActiveFilters[j];
					generatedWidgetData.Data = orderTroopItemFilterVM;
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.AddComponent(generatedWidgetData);
					this._widget_6.AddChildAtIndex(orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate, j);
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.CreateWidgets();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetIds();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetAttributes();
					orderBar__TaleWorlds_MountAndBlade_ViewModelCollection_Order_MissionOrderVM_Dependency_18_ItemTemplate.SetDataSource(orderTroopItemFilterVM);
				}
			}
		}

		// Token: 0x04000296 RID: 662
		private OrderTroopItemBrushWidget _widget;

		// Token: 0x04000297 RID: 663
		private GridWidget _widget_0;

		// Token: 0x04000298 RID: 664
		private ListPanel _widget_1;

		// Token: 0x04000299 RID: 665
		private Widget _widget_1_0;

		// Token: 0x0400029A RID: 666
		private TextWidget _widget_1_1;

		// Token: 0x0400029B RID: 667
		private Widget _widget_2;

		// Token: 0x0400029C RID: 668
		private InputKeyVisualWidget _widget_2_0;

		// Token: 0x0400029D RID: 669
		private SliderWidget _widget_3;

		// Token: 0x0400029E RID: 670
		private Widget _widget_3_0;

		// Token: 0x0400029F RID: 671
		private Widget _widget_3_1;

		// Token: 0x040002A0 RID: 672
		private Widget _widget_4;

		// Token: 0x040002A1 RID: 673
		private ImageIdentifierWidget _widget_5;

		// Token: 0x040002A2 RID: 674
		private GridWidget _widget_6;

		// Token: 0x040002A3 RID: 675
		private OrderTroopItemVM _datasource_Root;

		// Token: 0x040002A4 RID: 676
		private MBBindingList<OrderTroopItemFormationClassVM> _datasource_Root_ActiveFormationClasses;

		// Token: 0x040002A5 RID: 677
		private InputKeyItemVM _datasource_Root_SelectionKey;

		// Token: 0x040002A6 RID: 678
		private ImageIdentifierVM _datasource_Root_CommanderImageIdentifier;

		// Token: 0x040002A7 RID: 679
		private MBBindingList<OrderTroopItemFilterVM> _datasource_Root_ActiveFilters;
	}
}
